#pragma once
#include"HashBucket.h"

//unorderde_set
template<class K, class Hash = HashFunc<K>>
class unordered_set
{
	struct SetKeyOfT
	{
		const K& operator()(const K& key)
		{
			return key;
		}
	};
public:
	typedef typename HashTable<K, K, Hash, SetKeyOfT>::iterator iterator;

	pair<iterator, bool> insert(const K& key)
	{
		return _ht.Insert(key);
	}
	iterator begin()
	{
		return _ht.begin();
	}
	iterator end()
	{
		return _ht.end();
	}
private:
	HashTable<K, K, Hash, SetKeyOfT> _ht;
};
